﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web;
using System.Web.Mvc;

namespace Model
{

    [MetadataType(typeof(CustomerContactRecord_Metadata))]
    [DisplayName("CustomerContactRecord")]
    public partial class CustomerContactRecord
    {
        public CustomerContactRecord()
        {
            this.Id = Guid.NewGuid();
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
            this.AddDate = DateTime.Now;
        }

        public class CustomerContactRecord_Metadata
        {
            [ScaffoldColumn(false)]
            public Guid Id { get; set; }

            [ScaffoldColumn(false)]
            public Guid UserId { get; set; }

            [DisplayName("客户")]
            [Required]
            [DropDownList("Customer", "Id", "CustomerName")]
            public object CustomerId { get; set; }

            [DisplayName("时间")]
            [Required]
            public object AddDate { get; set; }

            [DisplayName("内容")]
            [Required]
            [DataType(DataType.MultilineText)]
            public object Content { get; set; }



        }
    }
}
